﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yun.IM.Response;
using Yun.Interface;
using Yun.Util;

namespace Yun.IM.Request
{
    /// <summary>
    /// 获取阿里云绑定的用户列表
    /// yun.im.aliyun.bind.user.list
    /// </summary>
    public class GetAliyunBindUserListRequest : ITopRequest<GetAliyunBindUserListResponse>
    {

        /// <summary>
        /// 用户ID，多个用户用英文逗号隔开
        /// </summary>
        public string UserIds { get; set; }

        /// <summary>
        /// 页码
        /// </summary>
        public int PageNum { get; set; } = 1;

        /// <summary>
        /// 页容量
        /// </summary>
        public int PageSize { get; set; } = 1;


        public void Validate()
        {
            RequestValidator.ValidateMaxValue("pagesize", PageSize, 1000);
        }
        public string GetApiName()
        {
            return "yun.im.aliyun.bind.user.list";
        }

        public IDictionary<string, string> GetParameters()
        {
            var parameters = new YunDictionary
            {
                {"pagenum", PageNum},
                {"pagesize", PageSize},
                {"userids", UserIds}
            };

            return parameters;
        }


    }
}
